import api from "../utils/request";
const baseUrl = "/api/api/sys/msg";
export function getMsgList(query) {
  return api.post(`${baseUrl}/list`, query);
}

export function del(id) {
  return api.delete(`${baseUrl}/del`, {
    params: {
      id: id,
    },
  });
}

export function readAll() {
  return api.get(`${baseUrl}/readAll`);
}

export function delRead() {
  return api.get(`${baseUrl}/del/read`);
}

export function notReadCount() {
  return api.get(`${baseUrl}/notReadCount`);
}

export function findById(id) {
  return api.get(`${baseUrl}/findById`, {
    params: {
      id: id,
    },
  });
}
